//
//  HCMainDataModel.h
//  HelloCall
//
//  Created by WangYongpeng on 13-10-15.
//  Copyright (c) 2013年 HC. All rights reserved.
//

#import <Foundation/Foundation.h>
//test-pause modify-#import "BusinessStruct.h"
#import "HCCallListModel.h"
#import "HCSuperCRMModel.h"

@protocol HCNetworkObserver <NSObject>

- (void)notifyNetworkMsg:(int)msgID data:(void*) data;

@end

@interface HCNetworkManger : NSObject

+ (HCNetworkManger*)shareManger;

- (BOOL)loginWithUserName:(NSString*)userName pwd:(NSString*)pwd;

- (BOOL)getQueryTicketStatByTicketType:(CallInfoType)ticketType;

- (BOOL)getQueryTicketListByTicketType:(CallInfoType)ticketType offset:(int)offset;
- (BOOL)getQueryTicketListByTicketType:(CallInfoType)ticketType offset:(int)offset limit:(int)limit;

- (BOOL)getQueryTicketDetailByTicketID:(NSString*)ticketID;

- (BOOL)applyTransferByTicketID:(NSString*)ticketID;

- (BOOL)applyGiveupByTicketID:(NSString*)ticketID;

- (BOOL)recordCustInfoByTicketID:(NSString*)ticketID;

- (BOOL)queryCustState;

- (BOOL)queryCustListByOffset:(int)offset;

- (BOOL)queryCustDetailByCustomId:(NSString*)customId;

- (BOOL)queryCallMemoByCustomId:(NSString*)customId offset:(int)offset;

- (BOOL)updateCallMemoByCustomId:(NSString*)customId content:(NSString*)content;

- (BOOL)queryCallBackInfoByCustomId:(NSString*)customId offset:(int)offset;

- (BOOL)updateCallBackInfoByCallBackId:(NSString*)callBackId remark:(NSString*)remark callBackTime:(NSString*)callBackTime;

- (BOOL)setCallBackStatusByCallBackId:(NSString*)callBackId status:(NSString*)status;

- (BOOL)setCustStatusByCustomId:(NSString*)customId status:(NSString*)status;


- (void)addObserver:(id <HCNetworkObserver>)observer;
- (void)removeObserver:(id <HCNetworkObserver>)observer;

@end
